//
//  NetworkHandle.h
//  YYPHSpeedJump
//
//  Created by sujiang on 15/12/29.
//  Copyright © 2015年 sujiang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetworkHandle : NSObject

+ (void)addToWindow;
+ (void)removeFromWindow;

+ (void)getDataWithUrl:(NSString *)urlStr firstKey:(NSString *)firstKey secondKey:(NSString *)secondKey success:(void(^)(NSDictionary *dictionary))success;

+ (void)getUpDataWithUrl:(NSString *)urlStr modelClass:(Class)classname
                firstKey:(NSString *)firstKey secondKey:(NSString *)secondKey  success:(void(^)(NSArray *array))success;

+ (void)getDataWithUrl:(NSString *)urlStr dictionary:(NSDictionary *)dict success:(void(^)(NSDictionary *dictionary))success;

+ (void)getOrderInfoWithUrl:(NSString *)url dictionary:(NSDictionary *)dic success:(void(^)(NSDictionary *dictionary))success;


+ (void)getInfoWithUrl:(NSString *)url dictionary:(NSDictionary *)dic success:(void(^)(NSDictionary *dictionary))success;

+ (void)getUpDataWithUrl:(NSString *)urlStr dictionary:(NSDictionary *)dictionary firstKey:(NSString *)firstKey success:(void(^)(NSArray *array))success;

+ (void)getUpDataWithUrl:(NSString *)urlStr class:(Class)classname dictionary:(NSDictionary *)dictionary firstKey:(NSString *)firstKey secondKey:(NSString *)secondKey success:(void(^)(NSArray *array))success;

+ (void)registAndLoginByUrl:(NSString *)url dict:(NSDictionary *)dic success:(void(^)(NSDictionary *dictionary))success;
+ (void)getUpDataWithUrl:(NSString *)urlStr class:(Class)classname dictionary:(NSDictionary *)dictionary firstKey:(NSString *)firstKey success:(void(^)(NSArray *array))success;
//商品列表请求
+ (void)getUpDataWithUrl:(NSString *)urlStr modelClass:(Class)classname firstKey:(NSString *)firstKey success:(void (^)(NSArray *array))success;
+ (void)getPropertyUrl:(NSString *)url dict:(NSDictionary *)dic success:(void(^)(NSDictionary *dictionary))success;
+ (void)getDataWithUrl:(NSString *)urlStr class:(Class)classname dictionary:(NSDictionary *)dictionary firstKey:(NSString *)firstKey success:(void(^)(NSArray *array))success;
@end
